package com.bigdata.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.bigdata.dao.UserMapper;
import org.springframework.stereotype.Service;

import com.bigdata.common.base.BaseDao;
import com.bigdata.common.base.BaseServiceImpl;
import com.bigdata.model.User;
import com.bigdata.service.UserService;

/**
 * 用户Service实现类
 *
 * @author StarZou
 * @since 2014年7月5日 上午11:54:24
 */
@Service("userService")
public class UserServiceImpl extends BaseServiceImpl<User, Long> implements UserService {

	@Resource(name = "userMapper")
    private UserMapper userMapper;

	@Override
	public List<User> findByName(String username) {
		List<User> userList = userMapper.findUserByName(username);
		
		return userList;
	}

	@Override
	public BaseDao<User, Long> getDao() {
		return userMapper;
	}
	
}
